#include "control.h"

struct control *add_interface_to_control_list(struct control *phead, struct control *device)
{
    if (phead == NULL)
    {
        phead = device;
        return phead;
    }
    else
    {
        // 头插法
        device->next = phead;
        phead = device;
        return phead;
    }
}